'''
#for in 循环结构左对齐

for m in range (1,10):
    for n in range(1,m+1):
        print("{}*{}={:<4}".format(n,m,n*m),end=" ")
    print("")
print ("===================for in左对齐===================")
for m in range (9,0,-1):
    for n in range(1,m+1):
        print("{}*{}={:<4}".format(n,m,n*m),end=" ")
    print("")



#for in 循环结构右对齐

for m in range (1,10):
    for n in range(m,0,-1):
        print("{}*{}={:<4}".format(n,m,n*m),end=" ")
    print("")

print ("===================for in右对齐===================")

for m in range (9,0,-1):
    for n in range(m,0,-1):
        print("{}*{}={:<4}".format(n,m,n*m),end=" ")
    print("")

    




for i in range(1,10):
    for m in range(1,10-i):
            print(end='        ')
    for a in range(1,i+1):
        print("{}*{}={:<4}".format(a,i,i*a),end="")
    print()

'''

    
for i in range(9,0,-1):
    for m in range(9-i,0,-1):
        print(end="        ")
    for a in range(i,0,-1):
        print("{}*{}={:<4}".format(i,a,i*a),end="")
    print()








